Skip to content

[AI Generated] BugFix: Surface real mismatch reasons for zero-quota VMs instead of unknown reason#4424

Open
johnsongeorge-w wants to merge 1 commit intomainfrom
bugfix/zero-quota-skip-reason_160426_153253
Open

[AI Generated] BugFix: Surface real mismatch reasons for zero-quota VMs instead of unknown reason#4424
johnsongeorge-w wants to merge 1 commit intomainfrom
bugfix/zero-quota-skip-reason_160426_153253

Conversation

@johnsongeorge-w
Copy link
Copy Markdown
Collaborator

Summary

When all candidate VMs are dropped due to zero quota before capability matching runs, LISA shows a generic 'unknown reason' skip message instead of the actual mismatch reason (e.g., architecture mismatch). This fix adds a fallback capability check against the full pre-quota-filtered candidate list to surface the real mismatch reasons.

Validation Results

Image VM Size Location Test Result
Canonical 0001-com-ubuntu-server-jammy 22_04-lts-arm64 latest Standard_HC44-16rs eastus2 smoke_test SKIPPED - now correctly shows architecture mismatch
Canonical 0001-com-ubuntu-server-focal 20_04-lts latest Standard_D2ds_v5 westus3 smoke_test PASSED

Copilot AI review requested due to automatic review settings April 16, 2026 23:54
@johnsongeorge-w
Copy link
Copy Markdown
Collaborator Author

Validation Results

Image VM Size Location Test Result
Canonical 0001-com-ubuntu-server-jammy 22_04-lts-arm64 latest Standard_HC44-16rs eastus2 smoke_test SKIPPED - now correctly shows architecture mismatch
Canonical 0001-com-ubuntu-server-focal 20_04-lts latest Standard_D2ds_v5 westus3 smoke_test PASSED

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves Azure VM capability selection error reporting in LISA by surfacing meaningful requirement mismatch reasons when all candidate VM sizes are filtered out due to zero quota (limit=0) before capability matching can run.

Changes:

  • Preserve a pre–quota-filtered candidate list so requirement checks can still be performed when quota filtering removes all candidates.
  • Add a fallback capability-check pass to populate unmet requirement reasons (e.g., architecture mismatch) instead of returning an “unknown reason” skip.

@github-actions
Copy link
Copy Markdown

✅ AI Test Selection — PASSED

1 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 1
❌ Failed 0
⏭️ Skipped 0
Total 1
Test case details
Test Case Status Time (s) Message
smoke_test (lisa_0_0) ✅ PASSED 27.799

@johnsongeorge-w johnsongeorge-w force-pushed the bugfix/zero-quota-skip-reason_160426_153253 branch from 49c1584 to 58362db Compare April 17, 2026 00:11
@github-actions
Copy link
Copy Markdown

✅ AI Test Selection — PASSED

1 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 1
❌ Failed 0
⏭️ Skipped 0
Total 1
Test case details
Test Case Status Time (s) Message
smoke_test (lisa_0_0) ✅ PASSED 39.453

Copilot AI review requested due to automatic review settings April 17, 2026 00:23
@johnsongeorge-w johnsongeorge-w force-pushed the bugfix/zero-quota-skip-reason_160426_153253 branch from 58362db to c31f18c Compare April 17, 2026 00:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@github-actions
Copy link
Copy Markdown

✅ AI Test Selection — PASSED

1 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 1
❌ Failed 0
⏭️ Skipped 0
Total 1
Test case details
Test Case Status Time (s) Message
smoke_test (lisa_0_0) ✅ PASSED 50.869

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants